package com.changli10.annotation;

import java.util.Date;

public class AnnotationTest {
    public static void main(String[] args) {
        Date date = new Date();
        System.out.println(date);
        @Deprecated//过时的
        Date date2 = new Date(2024,11,2);
        System.out.println(date2);
//        @SuppressWarnings() 取消警告
        @SuppressWarnings("unused") int num =10;
    }
}
class Person{
    public void eat(){
        System.out.println("人吃饭");
    }

}
class Student extends Person{
    @Override
//    public void ert   会报错
    public void eat(){
        System.out.println("学生吃饭");
    }
}
